package com.education.welco.service;



import com.education.welco.pojo.TEquipment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 设备 服务层
 *
 * @author d
 * @date 2022-06-20
 */
public interface ITEquipmentService {

    /**
     * 查询设备信息
     *
     * @param id 设备ID
     * @return 设备信息
     */
    @GetMapping("selectTEquipmentById")
    public TEquipment selectTEquipmentById(@RequestParam("id") Integer id);

    /**
     * 查询设备列表
     *
     * @param tEquipment 设备信息
     * @return 设备集合
     */
    @PostMapping("selectTEquipmentList")
    public List<TEquipment> selectTEquipmentList(@RequestBody TEquipment tEquipment);

    /**
     * 新增设备
     *
     * @param tEquipment 设备信息
     * @return 结果
     */
    @PostMapping("insertTEquipment")
    public int insertTEquipment(@RequestBody TEquipment tEquipment);

    /**
     * 修改设备
     *
     * @param tEquipment 设备信息
     * @return 结果
     */
    @PostMapping("updateTEquipment")
    public int updateTEquipment(@RequestBody TEquipment tEquipment);

    /**
     * 删除设备信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @GetMapping("deleteTEquipmentByIds")
    public int deleteTEquipmentByIds(@RequestParam("ids") String ids);


    public int deleteTEquipmentById(String id);
}